package com.godGuang.config;

import com.aliyun.oss.OSSClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ProjectName: Medic
 * @PackageName: com.medic.follow.config
 * @Description TODO
 * @Author Chen HongJie
 * @Date 2024/1/9 10:24
 * @Version 1.0
 */

/**
 * oss配置类
 */
@Configuration
public class OssConfig {
 private String endpoint = "oss-cn-shanghai.aliyuncs.com";

 private String accessKeyId = "LTAI5tNMw3bzJZ9khG1p8RB6";

 private String accessKeySecret = "ekbi9beVGRMIsQj0gSb95ukjmVBYJo";

 @Bean
 public OSSClient ossClient(){
  return new OSSClient(endpoint,accessKeyId,accessKeySecret);
 }
}
